package com.huikaka.entity;

public class Result<T> {
    private Integer code; //0 -> 成功 1 -> 失败 3 -> 异常
    private String message;
    private Integer size;
    private T data;

    public Result(){}
    public Result(int code, String message){
        this.code = code;
        this.message = message;
    }

    public Integer getCode() {
        return code;
    }

    public void setCode(Integer code) {
        this.code = code;
    }

    public String getMessage() {
        return message;
    }

    public void setMessage(String message) {
        this.message = message;
    }

    public T getData() {
        return data;
    }

    public void setData(T data) {
        this.data = data;
    }

    public Integer getSize() {
        return size;
    }

    public void setSize(Integer size) {
        this.size = size;
    }
}
